PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


GetWindowProxyAlias

Obtains an alias for the file that is associated with a window.

pascal OSStatus GetWindowProxyAlias (
                     WindowPtr window,
                     AliasHandle *alias);
window
A value of type WindowPtr . Pass a pointer to the window for which you wish to determine the associated file.
alias
A pointer to a value of type AliasHandle . On return, the AliasRecord structure referenced by the alias handle contains a copy of the alias data for the file associated with the specified window. Your application must dispose of this handle. See Inside Macintosh: Files for more information on aliases.
function result
A result code. See Result Codes.
DISCUSSION

Your application can call the GetWindowProxyAlias function to retrieve alias data for the file associated with a window. See Supporting Window Proxy Icons for examples of how your application can provide proxy icon support in its document windows.

VERSION NOTES

Available with Mac OS 8.5 and later.

SEE ALSO

The function SetWindowProxyAlias .


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)